<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>云南移动经营分析系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Pragma" content="no-cache"/>
<style type="text/css" media="screen">
html,body {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	overflow: auto;
	text-align: center;
	background-color: ${bgcolor};
}
object:focus {
	outline: none;
}

#flashContent {
	display: none;
}
</style>

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function loadExcelFile(bytestring) {
    var form = document.getElementById("form");
    var hiddenField = document.getElementById("hContext");
    hiddenField.setAttribute("value", bytestring);
    form.submit();
}
var swfVersionStr = "0";
var xiSwfUrlStr = "${expressInstallSwf}";
var flashvars = {};
var hrefstr,pos,parastr,para,tempstr,key,value;
hrefstr = window.location.href;
pos = hrefstr.indexOf("?");
parastr = hrefstr.substring(pos+1);

para = parastr.split("&");
tempstr = "";
for(i=0;i<para.length;i++) {
	tempstr = para[i];
	pos = tempstr.indexOf("=");
	key=tempstr.substring(0,pos);
	value = tempstr.substring(pos+1);
	flashvars[key] = value;
}
var params = {};
params.quality = "high";
params.bgcolor = "${bgcolor}";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "${application}";
attributes.name = "${application}";
attributes.align = "middle";
swfobject.embedSWF(
    "${swf}.swf", "flashContent", 
    "${width}", "${height}", 
    swfVersionStr, xiSwfUrlStr, 
    flashvars, params, attributes);
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
</head>
<body>
<div id="flashContent"></div>
<form id="form" method="post" action="export.groovy"><input id="hContext" type="hidden" name="context"/></form>
</body>
</html>
